-- GENERATED SPELL FOR [Anchorite Avuun] --


function spell0_17127(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(12039,pUnit)
pUnit:RegisterEvent('Sorts_17127', 3000, 1)
end

function spell1_17127(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(15498,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17127', 2500, 1)
end

function spell2_17127(pUnit, Event) --@Inner Fire,Self--
pUnit:FullCastSpellOnTarget(1006,pUnit)
pUnit:RegisterEvent('Sorts_17127', 685, 1)
end

function Sorts_17127(pUnit, Event)
local choix_sorts_17127 = math.random(0, 2)
if choix_sorts_17127 == 0 then
pUnit:RegisterEvent('spell0_17127', 1, 1)
end
if choix_sorts_17127 == 1 then
pUnit:RegisterEvent('spell1_17127', 1, 1)
end
if choix_sorts_17127 == 2 then
pUnit:RegisterEvent('spell2_17127', 1, 1)
end
end

function mob17127_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17127', math.random(1500, 3000), 1)
end

function mob17127_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17127_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17127_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17127, 1, 'mob17127_Action')
RegisterUnitEvent(17127, 2, 'mob17127_Leave')
RegisterUnitEvent(17127, 3, 'mob17127_Kill')
RegisterUnitEvent(17127, 4, 'mob17127_Die')
